import request from "../utils/request";

export function getNoticeList(pageIndex = 1, pageSize = 20) {
  return request({
    url: "/api/notice/page",
    method: "get",
    params: {
      pageIndex: pageIndex,
      pageSize: pageSize
    }
  });
}

export function getNoticeInfo(noticeId) {
  return request({
    url: "/api/notice/" + noticeId,
    method: "get",
    params: {
      isMobile: 1
    }
  });
}

export function getBannerList() {
  return request({
    url: "/api/banner/list",
    method: "get"
  });
}
